from distutils.core import setup
import py2exe, sys, os

sys.argv.append('py2exe')

setup(
    options = {
               'py2exe': 
               {
                "compressed": 1,
                'bundle_files': 1,
                'includes': ['lxml.etree', 'lxml._elementpath', 'gzip'],
                "excludes" : ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
                        'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl', 'Tkconstants', 'Tkinter'],
                "dll_excludes": ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'tcl84.dll',
                        'tk84.dll', 'w9xpopen.exe', 'MSVCR71.dll'],

                }
               },
    console = [{'script': ".//EmpVotingTestBed//TestBedMain.py"}],
    zipfile = None,


)
